﻿
namespace dotNetMagazin201108.PresentationLayer.Presenter
{
    public class CompanyListDto
    {
        public string Text { get; set; }
        public int Id { get; set; }
        public override string ToString()
        {
            return Text;
        }
        public override bool Equals(object obj)
        {
            CompanyListDto o = obj as CompanyListDto;
            if (o == null) return false;
            return Id == o.Id;
        }
        public override int GetHashCode()
        {
            return Id;
        }
    }
}
